package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.CheckItem;

import java.util.HashMap;
import java.util.List;

public interface CheckGroupDao {
    void addGroup(CheckGroup checkGroup);

    void addGroupAndItem(HashMap<String, Integer> map);

    Page<CheckGroup> findByCondition(String queryString);

    void deleteGroupAndItemByGroupId(int id);

    void deleteCheckGroupById(int id);

    CheckGroup findGroupById(int id);

    List<CheckItem> findItemsByGroupId(int id);

    void updateGroup(CheckGroup checkGroup);

    List<CheckGroup> findAllGroup();

    List<CheckGroup> findGroupsBySetMealId(int id);
}
